function Gadget(name, color) {
    this.name = name;
    this.color = color;
    this.WhatAreYou = function () {
        return 'I am a '  + this.color + ' ' + this.name;
    };
}
Gadget.prototype.price = 100;
Gadget.prototype.rating = 3;
Gadget.prototype.getInfo = function () {
    return 'Rating :' + this.rating + ', price :' + this.price;
};
var newtoy = new Gadget('webcam', 'black ');
console.log('newtoy.name  :' + newtoy.name);
console.log('newtoy.color :' + newtoy.color);
console.log('newtoy.WhatAreYou :' + newtoy.WhatAreYou());
console.log('newtoy.price :' + newtoy.price);
console.log('newtpy.getInfo:' + newtoy.getInfo());
